/* =========================================================================
 * Bizouk Play — fil commun (clips YouTube, vidéos des créateurs, actualités).
 * Préfixe .ph-*. Couleurs : jetons --bzk-* uniquement (clair et sombre).
 * Chargé par /play, /play/search et la page d'un clip (bloc de réactions).
 * ========================================================================= */

.ph {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 16px 56px;
    color: var(--bzk-text);
}
.ph a { text-decoration: none; }
/* En sombre, bzk-theme.css dore tous les liens (spécificité élevée) : ici les cartes gardent la couleur du texte. */
.dark-mode .ph a:not(.btn):not(.evh-hero-cta):not([class*="-btn"]):not([class*="btn-"]),
.dark-mode .ph a:not(.btn):not(.evh-hero-cta):not([class*="-btn"]):not([class*="btn-"]):hover { color: inherit; }
.dark-mode .ph a.ph-chip.is-on:not(.btn):not(.evh-hero-cta):not([class*="-btn"]):not([class*="btn-"]) { color: var(--bzk-on-accent); }
.dark-mode .ph a.ph-more-link:not(.btn):not(.evh-hero-cta):not([class*="-btn"]):not([class*="btn-"]) { color: var(--bzk-link); }

/* ----------- En-tête ----------- */
.ph-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 18px;
}
.ph-head-text { min-width: 0; }
.ph-head--bare { justify-content: flex-end; }
.ph-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ph-head h1 { margin: 0 0 2px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--bzk-text); display: flex; align-items: center; gap: 10px; }
.ph-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--bzk-accent); color: var(--bzk-on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.ph-accent { color: var(--bzk-accent); }
.ph-head p { margin: 0; color: var(--bzk-text-muted); font-size: 14px; max-width: 62ch; }
.ph-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bzk-surface);
    border: 1px solid var(--bzk-border-strong);
    border-radius: var(--bzk-radius-pill);
    padding: 0 16px;
    height: 44px;
    flex: 0 1 360px;
    color: var(--bzk-text-muted);
}
.ph-search .la { font-size: 18px; }
.ph-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--bzk-text); font-size: 16px; padding: 0; height: 100%; }
.ph-search:focus-within { border-color: var(--bzk-accent); box-shadow: 0 0 0 3px var(--bzk-accent-soft); }

/* ----------- Nouveautés (stories) ----------- */
.ph-stories {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-bottom: 8px;
    scrollbar-width: thin;
}
.ph-story { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--bzk-text); }
.ph-story-ring {
    width: 68px; height: 68px; border-radius: 50%;
    padding: 3px;
    box-sizing: border-box;
    background: var(--bzk-accent);
    display: block;
    overflow: hidden;
}
.ph-story.is-seen .ph-story-ring { background: var(--bzk-border-strong); }
.ph-story-ring img { box-sizing: border-box; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--bzk-surface); display: block; background: var(--bzk-surface); }
.ph-story-name { font-size: 12px; font-weight: 600; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-story-count { font-size: 11px; color: var(--bzk-text-muted); }

/* ----------- Thématiques ----------- */
.ph-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.ph-chip {
    flex: none;
    padding: 8px 15px;
    border-radius: var(--bzk-radius-pill);
    background: var(--bzk-surface);
    border: 1px solid var(--bzk-border-strong);
    color: var(--bzk-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.ph-chip:hover { border-color: var(--bzk-accent); }
.ph .ph-chip.is-on { background: var(--bzk-accent); border-color: var(--bzk-accent); color: var(--bzk-on-accent); }

/* ----------- À la une ----------- */
.ph {
    --ph-on-media: #fff;
    --ph-on-media-muted: rgba(255, 255, 255, .82);
}
.ph-hero { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 36px; }
.ph-hero--solo { grid-template-columns: 1fr; }
.ph-hero-main {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--bzk-radius-lg);
    background: var(--bzk-border);
    color: var(--ph-on-media);
}
.ph-hero-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease-out; }
.ph-hero-main:hover img { transform: scale(1.03); }
.ph-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.88) 100%); }
.ph-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ph-hero-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--bzk-radius-pill); background: var(--bzk-accent); color: var(--bzk-on-accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ph-hero-title { font-size: clamp(22px, 2.6vw, 36px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; text-shadow: 0 2px 12px rgba(0,0,0,.35); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-hero-creator { font-size: 15px; font-weight: 600; color: var(--ph-on-media-muted); }
.ph-hero-cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--bzk-radius-pill); background: var(--ph-on-media); color: #111; font-weight: 800; font-size: 15px; transition: transform .15s ease-out; }
.ph-hero-main:hover .ph-hero-cta { transform: translateY(-1px); }
.ph-hero-main:focus-visible { outline: 3px solid var(--bzk-accent); outline-offset: 3px; }

.ph-hero-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ph-hero-side-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--bzk-text-muted); }
.ph-mini { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: var(--bzk-radius); color: var(--bzk-text); min-width: 0; transition: background .15s; }
.ph-mini:hover { background: var(--bzk-surface); }
.ph-mini-thumb { position: relative; flex: none; width: 132px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bzk-border); display: flex; align-items: center; justify-content: center; }
.ph-mini-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-mini-thumb .la { position: relative; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: var(--ph-on-media); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ph-mini-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ph-mini-title { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-mini-meta { font-size: 12px; color: var(--bzk-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------- Sections ----------- */
.ph-section { margin-bottom: 38px; }
.ph-section h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--bzk-text); display: flex; align-items: center; gap: 8px; }
.ph-section h2 .la { color: var(--bzk-accent); font-size: 22px; }
.ph-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ph-section-head h2 { margin: 0; }
.ph .ph-more-link { color: var(--bzk-link); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; }
.ph-empty { color: var(--bzk-text-muted); margin: 8px 0 0; }

/* ----------- Grille du fil ----------- */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 18px; }
.ph-grid--featured { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* Bootstrap colore les liens survolés / touchés / visités (a:hover, a:focus) : les cartes gardent leurs couleurs. */
.ph a.ph-card, .ph a.ph-card:hover, .ph a.ph-card:focus, .ph a.ph-card:visited,
.ph a.ph-mini, .ph a.ph-mini:hover, .ph a.ph-mini:focus, .ph a.ph-mini:visited,
.ph a.ph-news-item, .ph a.ph-news-item:hover, .ph a.ph-news-item:focus, .ph a.ph-news-item:visited,
.ph a.ph-story, .ph a.ph-story:hover, .ph a.ph-story:focus,
.ph a.ph-creator-pill, .ph a.ph-creator-pill:hover, .ph a.ph-creator-pill:focus,
.ph a.ph-chip:not(.is-on), .ph a.ph-chip:not(.is-on):hover, .ph a.ph-chip:not(.is-on):focus { color: var(--bzk-text); text-decoration: none; }
.ph a.ph-hero-main, .ph a.ph-hero-main:hover, .ph a.ph-hero-main:focus, .ph a.ph-hero-main:visited { color: var(--ph-on-media); text-decoration: none; }
.ph a.ph-card:hover .ph-title, .ph a.ph-mini:hover .ph-mini-title { color: var(--bzk-accent-text); }

/* ----------- Rangées qui défilent ----------- */
.ph-rail-tools { display: flex; align-items: center; gap: 8px; }
.ph-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bzk-border-strong); background: var(--bzk-surface); color: var(--bzk-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; transition: border-color .15s, opacity .15s; }
.ph-arrow:hover:not(:disabled) { border-color: var(--bzk-accent); }
.ph-arrow:disabled { opacity: .35; cursor: default; }
.ph-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, calc((100% - 3 * 16px) / 4));
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 2px;
    padding: 2px 2px 10px;
    scrollbar-width: none;
}
.ph-rail::-webkit-scrollbar { display: none; }
.ph-rail > .ph-card { scroll-snap-align: start; }

/* ----------- Actus ----------- */
.ph-news { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: 16px 18px; }
.ph-news-item { display: flex; gap: 12px; align-items: flex-start; color: var(--bzk-text); min-width: 0; }
.ph-news-thumb { flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--bzk-border); }
.ph-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-news-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ph-news-title { font-size: 14px; font-weight: 700; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-news-item:hover .ph-news-title { color: var(--bzk-accent-text); }
.ph-news-meta { font-size: 12px; color: var(--bzk-text-faint); }
.ph-news-item.is-lead { grid-row: span 3; flex-direction: column; gap: 10px; }
.ph-news-item.is-lead .ph-news-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--bzk-radius); }
.ph-news-item.is-lead .ph-news-title { font-size: 18px; line-height: 1.25; }

/* ----------- Carte ----------- */
.ph-card { display: flex; flex-direction: column; gap: 9px; color: var(--bzk-text); min-width: 0; }
.ph-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--bzk-radius);
    overflow: hidden;
    background: var(--bzk-border);
}
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ph-card:hover .ph-thumb img { transform: scale(1.04); }
.ph-tag, .ph-duration, .ph-lock {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 7px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .72);
    color: var(--ph-on-media);
}
.ph-tag { top: 8px; left: 8px; letter-spacing: .02em; }
.ph-tag--bizouk { background: var(--bzk-accent); color: var(--bzk-on-accent); }
.ph-tag--youtube { background: var(--bzk-danger); color: var(--bzk-on-accent); }
.ph-tag--news { background: var(--bzk-info); color: var(--bzk-on-accent); }
.ph-duration, .ph-lock { right: 8px; bottom: 8px; }
.ph-lock { background: var(--bzk-accent); color: var(--bzk-on-accent); }
.ph-play {
    position: absolute; left: 50%; top: 50%;
    width: 46px; height: 46px; margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: var(--bzk-surface);
    color: var(--bzk-text);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .2s, transform .2s ease-out;
    box-shadow: var(--bzk-shadow-lg);
}
.ph-card:hover .ph-play, .ph-card:focus-visible .ph-play { opacity: .95; transform: scale(1); }
@media (hover: none) { .ph-play { display: none; } }
.ph-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ph-title { font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-creator { font-size: 13px; color: var(--bzk-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-meta { font-size: 12px; color: var(--bzk-text-faint); }
.ph-card:focus-visible { outline: 2px solid var(--bzk-accent); outline-offset: 4px; border-radius: var(--bzk-radius); }

/* ----------- Créateurs ----------- */
.ph-creators { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.ph-creator-pill {
    flex: none; width: 132px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 10px;
    background: var(--bzk-surface);
    border: 1px solid var(--bzk-border);
    border-radius: var(--bzk-radius-lg);
    color: var(--bzk-text);
    text-align: center;
}
.ph-creator-pill:hover { border-color: var(--bzk-accent); }
.ph-creator-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bzk-border); display: block; }
.ph-creator-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-creator-name { font-size: 13px; font-weight: 700; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-creator-subs { font-size: 12px; color: var(--bzk-text-muted); }

/* ----------- Boutons ----------- */
.ph-more { text-align: center; margin: 26px 0 0; }
.ph-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px;
    border-radius: var(--bzk-radius-pill);
    border: 1px solid var(--bzk-border-strong);
    background: var(--bzk-surface);
    color: var(--bzk-text);
    font-size: 14px; font-weight: 700;
    cursor: pointer;
}
.ph-btn:hover { border-color: var(--bzk-accent); }
.ph-btn:disabled { opacity: .6; cursor: default; }
.ph-btn--solid, .ph .ph-btn--solid, .ph-react .ph-btn--solid { background: var(--bzk-accent); border-color: var(--bzk-accent); color: var(--bzk-on-accent); }
.ph-btn.is-on { background: var(--bzk-accent-soft); border-color: var(--bzk-accent); color: var(--bzk-accent-text); }

.ph-creator-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 20px;
    background: var(--bzk-surface);
    border: 1px solid var(--bzk-border);
    border-radius: var(--bzk-radius-lg);
}
.ph-creator-cta div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-creator-cta strong { font-size: 16px; color: var(--bzk-text); }
.ph-creator-cta span { color: var(--bzk-text-muted); font-size: 14px; }

/* ----------- Réactions (page d'un clip, d'un article) ----------- */
.ph-react { margin: 22px 0; color: var(--bzk-text); }
.ph-react-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ph-react-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; color: var(--bzk-text); }
.ph-comments-count { color: var(--bzk-text-muted); font-weight: 400; }
.ph-comment-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.ph-comment-form textarea {
    flex: 1 1 260px; min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--bzk-border-strong);
    border-radius: var(--bzk-radius);
    background: var(--bzk-surface);
    color: var(--bzk-text);
    font-size: 15px;
    resize: vertical;
}
.ph-comment-form textarea:focus { outline: 0; border-color: var(--bzk-accent); }
.ph-form-msg { flex-basis: 100%; margin: 0; color: var(--bzk-danger); font-size: 14px; }
.ph-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ph-comment { padding-bottom: 14px; border-bottom: 1px solid var(--bzk-border); }
.ph-comment-author { font-weight: 700; font-size: 14px; }
.ph-comment-date { color: var(--bzk-text-faint); font-size: 12px; margin-left: 6px; }
.ph-comments-empty { color: var(--bzk-text-muted); margin: 0; }
.ph-comment p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }

/* ----------- Recherche ----------- */
.ph .ph-crumb { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--bzk-text-muted); margin-bottom: 4px; }
.ph .ph-crumb:hover { color: var(--bzk-accent-text); }
.ph--search .ph-head h1 { font-size: 22px; }
.ph-noresult { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 16px; margin-bottom: 30px; border: 1px dashed var(--bzk-border-strong); border-radius: var(--bzk-radius-lg); color: var(--bzk-text-muted); }
.ph-noresult strong { color: var(--bzk-text); font-size: 17px; }
.ph-noresult-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--bzk-accent-soft); color: var(--bzk-accent-text); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 4px; }

/* ----------- Stories : visionneuse plein écran (www/js/play-stories.js) ----------- */
/* Toujours sur fond noir (comme une vidéo) : couleurs fixes blanches sur noir, quel que soit le thème. */
.phs-lock, .phs-lock body { overflow: hidden; }
.ph-story { cursor: pointer; }
.ph-story:focus-visible .ph-story-ring { outline: 3px solid var(--bzk-accent); outline-offset: 2px; }
.phs {
    --phs-fg: #fff;
    --phs-fg-muted: rgba(255, 255, 255, .78);
    --phs-glass: rgba(255, 255, 255, .16);
    position: fixed; inset: 0; z-index: 2147483600;
    display: flex; align-items: center; justify-content: center; gap: 18px;
    color: var(--phs-fg);
    font-family: inherit;
}
.phs[hidden] { display: none; }
.phs-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 10, .94); }
.phs-stage {
    position: relative;
    height: min(92vh, 860px);
    aspect-ratio: 9 / 16;
    max-width: calc(100vw - 140px);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    animation: phs-in .22s ease-out;
}
@keyframes phs-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.phs-side {
    position: relative; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: var(--phs-glass); color: var(--phs-fg);
    display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer;
    transition: background .15s;
}
.phs-side:hover { background: rgba(255, 255, 255, .28); }

.phs-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 4px; }
.phs-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.phs-bar-fill { display: block; height: 100%; background: var(--phs-fg); transform: scaleX(0); transform-origin: left center; }

.phs-head { position: absolute; top: 22px; left: 12px; right: 8px; z-index: 4; display: flex; align-items: center; gap: 10px; }
.phs-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--phs-glass); border: 2px solid var(--phs-fg); }
.phs-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phs-who { flex: 1; min-width: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.phs-name { font-weight: 800; }
.phs-ago { color: var(--phs-fg-muted); font-size: 14px; }
.phs-tools { display: flex; gap: 2px; }
.phs-tool { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--phs-fg); font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.phs-tool:hover { background: var(--phs-glass); }
.phs-tool.is-off { background: var(--phs-glass); }
.phs-tool:focus-visible, .phs-side:focus-visible, .phs-cta:focus-visible { outline: 2px solid var(--phs-fg); outline-offset: 2px; }

.phs-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.phs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phs-body--video .phs-bg { filter: blur(26px) brightness(.45); transform: scale(1.15); }
.phs-body--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 42%, rgba(0,0,0,.92) 100%); }
.phs-video { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-62%); aspect-ratio: 16 / 9; background: #000; }
.phs-video iframe { width: 100%; height: 100%; display: block; border: 0; pointer-events: none; }
.phs-body--poster .phs-bg { filter: blur(26px) brightness(.45); transform: scale(1.15); }
.phs-poster { position: absolute; left: 0; right: 0; top: 64px; bottom: 210px; width: 100%; height: calc(100% - 274px); object-fit: contain; z-index: 1; }
.phs-body--poster::after { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.85) 100%); }
/* Rangée de stories posée sur l'accueil des évènements (home-stories.js) */
.ph.ph--home-stories { max-width: none; margin: 0 0 10px; padding: 0; }
.ph.ph--home-stories[hidden] { display: none; }
.phs-text { position: relative; z-index: 2; padding: 0 18px 92px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.phs-tag { padding: 4px 9px; border-radius: 999px; background: var(--bzk-accent); color: var(--bzk-on-accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.phs-title { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.phs-by { font-size: 14px; font-weight: 600; color: var(--phs-fg-muted); }
.phs-summary { font-size: 15px; line-height: 1.45; color: var(--phs-fg-muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.phs-tap { position: absolute; top: 70px; bottom: 80px; z-index: 3; border: 0; background: transparent; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.phs-tap--prev { left: 0; width: 33%; }
.phs-tap--next { right: 0; width: 67%; }

.phs-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 16px 18px 20px; display: flex; justify-content: center; }
.phs .phs-cta, .phs .phs-cta:hover, .phs .phs-cta:focus, .phs .phs-cta:visited {
    display: inline-flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 24px; border-radius: 999px;
    background: var(--phs-fg); color: #111; font-weight: 800; font-size: 15px; text-decoration: none;
}
.phs.is-paused .phs-bars { opacity: .5; }
/* bzk-theme.css dore tous les liens en sombre (spécificité élevée) : le bouton reste noir sur blanc. */
.dark-mode .phs a.phs-cta:not(.btn):not(.evh-hero-cta):not([class*="-btn"]):not([class*="btn-"]),
.dark-mode .phs a.phs-cta:not(.btn):not(.evh-hero-cta):not([class*="-btn"]):not([class*="btn-"]):hover { color: #111; }

.phs-panel { display: none; }

/* Grand écran : media au format écran à gauche, colonne d'information à droite (au lieu d'un format téléphone). */
@media (min-width: 1024px) and (min-height: 600px) {
    .phs { --phs-panel: 380px; --phs-h: min(86vh, 780px); }
    .phs-stage {
        height: var(--phs-h);
        aspect-ratio: auto;
        width: min(calc(100vw - 150px), calc(var(--phs-h) * 16 / 9 + var(--phs-panel)));
        max-width: none;
    }
    .phs-bars, .phs-head { right: calc(var(--phs-panel) + 10px); }
    .phs-body { right: var(--phs-panel); }
    .phs-video { top: 50%; transform: translateY(-50%); }
    .phs-body .phs-text, .phs-foot { display: none; }
    .phs-poster { top: 64px; bottom: 24px; height: calc(100% - 88px); }
    .phs-body--image::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 24%); }
    .phs-tap { top: 70px; bottom: 0; }
    .phs-tap--prev { left: 0; width: calc((100% - var(--phs-panel)) * .33); }
    .phs-tap--next { right: var(--phs-panel); width: calc((100% - var(--phs-panel)) * .67); }

    .phs-panel {
        display: flex; flex-direction: column; gap: 18px;
        position: absolute; top: 0; right: 0; bottom: 0; width: var(--phs-panel); z-index: 5;
        padding: 26px 22px 20px; overflow-y: auto;
        background: #121214; border-left: 1px solid rgba(255, 255, 255, .08);
    }
    .phs-p-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
    .phs-p-title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--phs-fg); letter-spacing: -0.01em; }
    .phs-p-meta { font-size: 13px; color: var(--phs-fg-muted); }
    .phs-p-summary { margin: 0; font-size: 14px; line-height: 1.5; color: var(--phs-fg-muted); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
    .phs .phs-p-cta { margin-top: 4px; }
    .phs-p-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--phs-fg-muted); }
    .phs-p-list { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
    .phs-p-list .phs-p-label { margin-bottom: 4px; }
    .phs-p-item {
        display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px; border: 0; border-radius: 10px;
        background: transparent; color: var(--phs-fg); text-align: left; cursor: pointer; font: inherit;
    }
    .phs-p-item:hover { background: var(--phs-glass); }
    .phs-p-item.is-on { background: rgba(255, 255, 255, .12); }
    .phs-p-thumb { position: relative; flex: none; width: 88px; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: #2a2a2e; display: flex; align-items: center; justify-content: center; }
    .phs-p-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .phs-p-thumb .la { position: relative; font-size: 18px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
    .phs-p-item-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .phs-p-item-title { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .phs-p-item-ago { font-size: 12px; color: var(--phs-fg-muted); }
    .phs-p-next {
        margin-top: auto; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 12px;
        background: var(--phs-glass); color: var(--phs-fg); text-align: left; cursor: pointer; font: inherit;
    }
    .phs-p-next:hover { background: rgba(255, 255, 255, .24); }
    .phs-p-next-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .phs-p-next-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .phs-p-next .la { font-size: 20px; }
    .phs-p-item:focus-visible, .phs-p-next:focus-visible { outline: 2px solid var(--phs-fg); outline-offset: 2px; }
}

@media (max-width: 640px), (max-height: 520px) {
    .phs { gap: 0; }
    .phs-stage { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; animation: none; }
    .phs-side { display: none; }
    .phs-bars { top: calc(8px + env(safe-area-inset-top, 0px)); }
    .phs-head { top: calc(20px + env(safe-area-inset-top, 0px)); }
    .phs-foot { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
    .phs-stage { animation: none; }
}

@media (max-width: 1100px) {
    .ph-rail { grid-auto-columns: minmax(220px, calc((100% - 2 * 16px) / 3)); }
}
@media (max-width: 980px) {
    .ph-hero { grid-template-columns: 1fr; }
    .ph-hero-side { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 12px; }
    .ph-hero-side::-webkit-scrollbar { display: none; }
    .ph-hero-side-title { display: none; }
    .ph-mini { flex: none; width: 240px; flex-direction: column; align-items: stretch; margin: 0; padding: 0; }
    .ph-mini:hover { background: transparent; }
    .ph-mini-thumb { width: 100%; }
    .ph-news { grid-template-columns: 1fr 1fr; }
    .ph-news-item.is-lead { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .ph { padding: 12px 16px 44px; }
    .ph-head h1 { font-size: 21px; }
    .ph-logo { width: 30px; height: 30px; font-size: 16px; }
    .ph-search { flex-basis: 100%; }
    .ph-hero { margin: 0 -16px 30px; gap: 14px; }
    .ph-hero-main { border-radius: 0; aspect-ratio: 4 / 3; }
    .ph-hero-text { padding: 18px 16px; }
    .ph-hero-side { padding: 0 16px; }
    .ph-hero-cta { height: 44px; padding: 0 18px; }
    .ph-arrow { display: none; }
    .ph-rail { grid-auto-columns: 76%; margin: 0 -16px; padding: 2px 16px 10px; scroll-padding: 0 16px; }
    .ph-news { grid-template-columns: 1fr; }
    .ph-grid, .ph-grid--featured { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
    .ph-grid .ph-title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .ph-thumb img, .ph-play, .ph-hero-main img, .ph-hero-cta { transition: none; }
    .ph-rail { scroll-behavior: auto; }
}
